﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdministrationInformation.aspx.cs" Inherits="Liguo.Administration.AdministrationInformation" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>管理员信息</title>
     <script type="text/javascript">
         function CheckInput() {
             var pass = true;
             pass = !isEmpty("InputAdmin");
                 if (!pass) {
                     alert('请填写用户名');
                     return false;
                 }
             }
         function isEmpty(name) {
             return document.getElementById(name).value == "";
         }
         function isValid(name, pat) {
             var s = document.getElementById(name).value;
             return pat.exec(s);
         }
         </script>
</head>
<body>
    <form id="form1" runat="server">
     <table>
         <tr>
             <td><asp:Label ID="Label1" runat="server" Text="用户名:"></asp:Label></td>
             <td><asp:TextBox ID="InputAdmin" runat="server"></asp:TextBox></td>
         </tr>
     </table>
        <asp:Button ID="search" runat="server" Text="搜索" OnClick="search_Click"/>
    <div>
    
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
                        ForeColor="#333333" GridLines="Horizontal" DataKeyNames="ID">
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="管理员ID" ReadOnly="True" />
                            <asp:BoundField DataField="AdminName" HeaderText="管理员" ReadOnly="True" />
                            <asp:TemplateField HeaderText="状态">
                                <ItemTemplate>
                                    <asp:DropDownList ID="DropDownList1" runat="server" DataValueField="Status" AutoPostBack="true" 
                                        OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                                      <asp:ListItem Value="0">禁用</asp:ListItem>
                                      <asp:ListItem Value="1">启用</asp:ListItem>
                                    </asp:DropDownList>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
    
    </div>
    </form>
</body>
</html>
